<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include admin_template('phpcms','header'); ?>

<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><?php echo catpos($catid);?></div>
    <div class="bdr_2">
      <ul class="pic_list">
<div id='tag_二级栏目图片'><?php if(isset($catid)) echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 4, array (  'class' => 'url',  'target' => '_blank',  'height' => '87',  'width' => '142',  'titlelen' => '16',));?></div><div class='tag_float_div' id='tag_float_div_二级栏目图片' tagname='二级栏目图片' module='phpcms' title='点击修改中文标签“{tag_二级栏目图片}”'></div>
      </ul>
    </div>
<div id='tag_二级栏目标题列表'><?php if(isset($catid)&& isset($catid)) echo tag('phpcms', 'tag_content_list', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99  ".get_sql_catid($catid)." ORDER BY contentid DESC", $page, 20, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '65',), $catid);?></div><div class='tag_float_div' id='tag_float_div_二级栏目标题列表' tagname='二级栏目标题列表' module='phpcms' title='点击修改中文标签“{tag_二级栏目标题列表}”'></div>
  </div>
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side"><script language="javascript" src="data/js.php?id=5"></script></div>
    <h4>推荐图片文章</h4>
    <div>
      <ul class="pic_list">
        <div id='tag_栏目页图片文章'><?php if(isset($catid)) echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 9, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'height' => '62',  'width' => '87',));?></div><div class='tag_float_div' id='tag_float_div_栏目页图片文章' tagname='栏目页图片文章' module='phpcms' title='点击修改中文标签“{tag_栏目页图片文章}”'></div>
      </ul>
    </div>
<?php echo block_edit("list_article", 1);?>
    <h4>热点文章</h4>
    <div>
      <ul class="text_list">
       <div id='tag_栏目页热点'><?php if(isset($catid)) echo tag('phpcms', 'tag_content', "SELECT c.contentid,c.catid,c.typeid,c.areaid,c.title,c.style,c.thumb,c.keywords,c.description,c.userid,c.updatetime,c.inputtime,c.url,n.hits FROM `phpcms_content` c,`phpcms_content_count` n WHERE  c.contentid=n.contentid AND c.`status`=99 ".get_sql_catid($catid)." ORDER BY n.hits DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?></div><div class='tag_float_div' id='tag_float_div_栏目页热点' tagname='栏目页热点' module='phpcms' title='点击修改中文标签“{tag_栏目页热点}”'></div>
      </ul>
    </div>
<?php echo block_edit("list_$catid", 2);?>
  </div>
</div>
<!--end main-->
<?php include admin_template('phpcms','footer'); ?>